<template>
  <div style="border: 1px solid red; padding: 25px">v2子组件
    <div>
      <BCom>
        <h5>我是在自定义组件的中间写内容，回去哪里？</h5>
        <!-- <p slot="top">11111</p> -->
        <!-- <template v-slot:top>
          <p>11111</p>
        </template> -->
        <!-- <template #top="obj"> -->
        <!-- <template #top="{ a, b}"> -->
        <template slot="top" slot-scope="{ a, b}">
          <!-- <p>11111, {{ obj }}</p> -->
          <p>11111, {{ a }}, {{ b }}</p>
          <el-button @click="delRole(a)">删除</el-button>
        </template>

      </BCom>
    </div>
  </div>
</template>

<script>
import BCom from './B'
export default {
  name: '',
  components: { BCom },
  data() {
    return {}
  }
}
</script>
